package com.group4.xiao_ge_lai_yi_zhu.service;

import com.group4.xiao_ge_lai_yi_zhu.dao.UserDAO;

/**
 * 登录界面的业务层
 * 用于处理登录的业务逻辑
 */
public class LoginService {

    private UserDAO userDAO = new UserDAO();
    public boolean usernameExist(String username){
        return userDAO.usernameExist(username);
    }

    public boolean passwordExist(String username,String password) {
        return userDAO.passwordExist(username,password);
    }
}
